package com.lycx.businessmanager.model;

import java.util.Date;

import com.lycx.businessmanager.constant.ConstantsProperty;
import com.lycx.businessmanager.manager.DictionaryManager;
import com.lycx.businessmanager.util.MyUtils;

public class User {

	private int id;
    private String userName;
    private String password;
    private String realName;
    private int deptId;
    private String tel;
    private String mobile;
    private String address;
    private String email;
    private String position;
    private Date createTime;
    private String userLevel;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public int getDeptId() {
		return deptId;
	}
	public void setDeptId(int deptId) {
		this.deptId = deptId;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public String getCreateTimeStr(){
		return MyUtils.dateToString(this.createTime);
	}
	public String getUserLevel() {
		return userLevel;
	}
	public void setUserLevel(String userLevel) {
		this.userLevel = userLevel;
	}
    
	public String getUserLevelName(){
		return DictionaryManager.valueToName(ConstantsProperty.DICT_TYPE_USER_LEVEL, userLevel);
	}
    
	
}
